/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(function(){
    $('#schede > div').hide();
    var divCliccato='';
    var divOld='';
    $('.miserve').click(function(){
        divCliccato =$(this).attr("id"); 
        if(divCliccato != divOld){
           $('#selettore > div').css({"opacity":"1"});
           $(this).css({"opacity": "0.5"});
           $('#scheda-'+divCliccato).fadeIn("slow"); 
           $('#scheda-'+divOld).hide(); 
        }
        divOld=divCliccato;
     
    });
});
